Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and context
Once the user creates a campaign and participates as organizer,beneficiary or coordinator the user can not manage their campaigns and can't edit them or view a lot of information about the campaigns.The user also can't see how the campaigns that they donated to is developing, like for example did a campaing reach their target amount and etc.Also the user cannot edit or delete the campaign.
Closes #1054
Now the user has another tab in my profile, where the user can view all the campaigns that they donated to and all the campaigns that the user participates as organizer,beneficiary or coordinator and in the case that the user is organizer,beneficiary or coordinator the user could later edit or delete the campaign
I solved the problem this way - I created two DataGrids - one for the donatedTo campaigns and one for the participationCampaigns. In each DataGrid there is a lot of data like actions,targetAmount,campaignDescription and so on - a lot of information that the user can see now. Also the user is now unable to edit their campaigns,but that will be also handled soon. The user also can filter the campaigns by every possible field, can view the extended description,can click on the campaign etc.
Screenshots:
| Before |
| After |
Testing
I tested my changes with the api and tried to find some bugs but if there is some bug or error everything is handled and it shows the user that something went wrong
I changed the locales because of the translations and also the apiEndpoints.ts and campaigns.ts because of the API endpoints